package com.localjoycommunity.cpdj.project.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.localjoycommunity.cpdj.project.system.domain.SysPaper;

import java.util.List;

/**
 * 试卷Service接口
 *
 * @author leepandar
 * @date 2020-11-01
 */
public interface ISysPaperService extends IService<SysPaper> {
    /**
     * 查询试卷
     *
     * @param paperId 试卷ID
     * @return 试卷
     */
    public SysPaper selectSysPaperById(Long paperId);

    /**
     * 查询试卷列表
     *
     * @param sysPaper 试卷
     * @return 试卷集合
     */
    public List<SysPaper> selectSysPaperList(SysPaper sysPaper);

    /**
     * 新增试卷
     *
     * @param sysPaper 试卷
     * @return 结果
     */
    public Long insertSysPaper(SysPaper sysPaper);

    /**
     * 修改试卷
     *
     * @param sysPaper 试卷
     * @return 结果
     */
    public int updateSysPaper(SysPaper sysPaper);

    /**
     * 批量删除试卷
     *
     * @param paperIds 需要删除的试卷ID
     * @return 结果
     */
    public int deleteSysPaperByIds(Long[] paperIds);

    /**
     * 删除试卷信息
     *
     * @param paperId 试卷ID
     * @return 结果
     */
    public int deleteSysPaperById(Long paperId);
}
